<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>

<s:include value="pageTop.jsp" />

<div id="page" align="center">
	<div id="content">
		<div class="post">
			<h2 class="title">
			<s:text name="title.reservacion" /> </h2>
			<div class="entry">
<s:if test="#session.usuario==null"><p><s:text name="errors.authenticate" /></p></s:if>
<s:else> 
	<fieldset>
<s:form id="peticionForm" action="savePeticionA" method="post">
<s:action name="editPeticion!input" executeResult="false" ignoreContextParams="true"/>
	<s:textfield name="peticion.partida" value="%{peticion.partida}" label="%{getText('label.partida')}" size="25" required="true" maxlength="200" />
	<s:textfield name="peticion.destino" value="%{peticion.destino}" label="%{getText('label.destino')}" size="25" required="true" maxlength="200" />
	<sx:datetimepicker name="peticion.fechaReservacion" value="%{'today'}" label="%{getText('label.fecha')}" toggleType="explode" toggleDuration="300" displayFormat="dd/MM/yyyy"/>
	<s:textfield name="peticion.hola" label="%{getText('label.hora')}" size="25" required="true" maxlength="200"/>
	<!--sx:datetimepicker name="peticion.hora" value="%{'8:00'}" label="%{getText('label.hora')}" toggleType="explode" toggleDuration="300" type="time"/-->
	<s:hidden name="peticion.kilometros" value="20"/>
	<s:hidden name="peticion.importe" value="40"/>
	<s:hidden name="peticion.usuario.idUsuario" value="%{#session.usuario.idUsuario}" />	
	<s:hidden name="peticion.idPeticion" value="%{peticion.idPeticion}" />
	<s:hidden name="peticion.estado" value="%{'NoAtendida'}" />
	<s:submit value="%{getText('button.label.submit')}" />
</s:form></fieldset></s:else>
			</div>
		</div>
	</div>	
<s:include value="pageBottom.jsp" />